//
//  DoctorDetailSectionHeader.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/2/27.
//  Copyright © 2020 tao Tao. All rights reserved.
//

import UIKit

class DoctorDetailSectionHeader: UITableViewHeaderFooterView {
    
    var clickedClosure: (() -> Void)?
    
    @IBOutlet private weak var bgView: UIView!
    
    @IBOutlet private weak var titleLabel: UILabel!
    
    @IBOutlet private weak var clickedBtn: UIButton! {
        didSet {
            //clickedBtn.setTitleColor(.main, for: .normal)
            clickedBtn.setBackgroundImage(UIImage(color: .white), for: .normal)
            clickedBtn.setBackgroundImage(UIImage(color: .mainLight), for: .highlighted)
        }
    }
    
    @IBAction private func clikedAction(_ sender: UIButton) {
        clickedClosure?()
    }
    
    func configure() {
        bgView.backgroundColor = .clear
        titleLabel.text = "团队成员"
        clickedBtn.isHidden = true
    }
}
